/* ************************************************************************

   Copyright:

   License:

   Authors:

************************************************************************ */

/* ************************************************************************

#asset(jabber/*)

************************************************************************ */

/**
 * This is the main application class of your custom application "jabber"
 */
qx.Class.define("jabber.Application",
{
  extend : qx.application.Standalone,



  /*
  *****************************************************************************
     MEMBERS
  *****************************************************************************
  */

  members :
  {
    /**
     * This method contains the initial application code and gets called 
     * during startup of the application
     * 
     * @lint ignoreDeprecated(alert)
     */
    main : function()
    {
      // Call super class
      this.base(arguments);

      // Enable logging in debug variant
      if (qx.core.Environment.get("qx.debug"))
      {
        // support native logging capabilities, e.g. Firebug for Firefox
        qx.log.appender.Native;
        // support additional cross-browser console. Press F7 to toggle visibility
        qx.log.appender.Console;
      }

      /*
      -------------------------------------------------------------------------
        Below is your actual application code...
      -------------------------------------------------------------------------
      */

        var resizer = new qx.ui.container.Resizer().set({
            width: 200,
            height: 300
        });

        var resizer2 = new qx.ui.container.Resizer();
        var tabView = new qx.ui.tabview.TabView();
        var page1 = new qx.ui.tabview.Page("Pepe");
        var page2 = new qx.ui.tabview.Page("Manolo");
        
        page1.setLayout(new qx.ui.layout.Grow());
        page2.setLayout(new qx.ui.layout.Grow());
        
        resizer.setLayout(new qx.ui.layout.Grow());
        resizer.add(tabView);
        
        var text = new qx.ui.form.TextArea();
        var text2 = new qx.ui.form.TextField();
        
        resizer2.setLayout(new qx.ui.layout.Dock());
        resizer2.add(text, {edge:'north', height:'100%'});
        resizer2.add(text2, {edge:'south'});
        
        page1.add(resizer2);
        tabView.add(page1);
        tabView.add(page2);
        this.getRoot().add(resizer);
    }
  }
});
